package huanzhao.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
@TableName(value ="label")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Label implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标签名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 标签用途
     */
    @TableField(value = "usage")
    private String usage;

    /**
     * 标签数据
     */
    @TableField(value = "data")
    private String data;

    /**
     * 修改人id
     */
    @TableField(value = "modifier_id")
    private Long modifierId;


    @TableField(value = "last_modified")
    private Date lastModified;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}